'use strict'

const mongoose = require('mongoose')

const { Schema } = mongoose

module.exports = mongoose.model('Class', new Schema({
  courseCode: String, // 课程编号
  courseName: String, // 课程名称
  period: Number, // 期数
  number: Number, // 人数
  startAt: {type: Date}, // 开班日期
  expenses: Number, // 费用
  manager: [{_id: Schema.Types.ObjectId, name: String}], // 负责人 -> Manager
}))